﻿@model Projeto_Build_0.Models.Evento

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Evento</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.NomeEvento)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NomeEvento)
            @Html.ValidationMessageFor(model => model.NomeEvento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HoraInicio)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HoraInicio)
            @Html.ValidationMessageFor(model => model.HoraInicio)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HoraFim)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HoraFim)
            @Html.ValidationMessageFor(model => model.HoraFim)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descricao)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descricao)
            @Html.ValidationMessageFor(model => model.Descricao)
        </div>


        
       
        
        

         <div class="editor-label">
           Dia da Semana
        </div>           

        <div class="editor-field">
           @Html.DropDownListFor(model => model.DiaEscolar.DiaDaSemana.Dia, (IEnumerable<SelectListItem>)ViewData["Dias"])            
        </div>

        <div class="editor-label">
           Ano
        </div>           

        <div class="editor-field">
           @Html.DropDownListFor(model => model.DiaEscolar.SemanaEscolar.Ano, (IEnumerable<SelectListItem>)ViewData["Anos"])            
        </div>

        <div class="editor-label">
           Sala
        </div>           

        <div class="editor-field">
           @Html.DropDownListFor(model => model.DiaEscolar.SemanaEscolar.Sala.NomeSala, (IEnumerable<SelectListItem>)ViewData["Salas"])            
        </div>

        <div class="editor-label">
           Número da Semana
        </div>           

        <div class="editor-field">
           @Html.DropDownListFor(model => model.DiaEscolar.SemanaEscolar.NumeroSemana, (IEnumerable<SelectListItem>)ViewData["Semanas"])            
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
   @Html.ActionLink("Back", "Index", "SemanaEscolar", new { Nsemana = 1, Ano = 2011 }, null)
</div>
